package com.hs.jhzd.controller;

import com.hs.jhzd.entity.ZyKhlsjlbEntity;
import com.hs.jhzd.repository.ZyKhlsjlbRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
/*
在押人员考核历史记录查询
考核信息
 */
@Controller
@RequestMapping("/acp-cloud/prison")
@Slf4j
public class ZyKhlsjlbController {

    @Autowired
    private ZyKhlsjlbRepository repository;


    @RequestMapping("/kh/list")
    @ResponseBody
    public List<ZyKhlsjlbEntity> findJyzy(String rybh) {
        List<ZyKhlsjlbEntity> byType = repository.findAllByRybh(rybh);
        return byType;
    }


}
